// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
//VUE核心
import Vue from "vue";
import {sync} from "vuex-router-sync";
//VUE配置
import axios from "./config/axios";
import router from "./config/router";
import store from "./config/store";
import i18n from './config/i18n';
import api from './config/api';
//自定义
import "assets/css/_variable.scss";
import "assets/css/module.scss";

//平滑滚动
require('smoothscroll-polyfill').polyfill();
window.__forceSmoothScrollPolyfill__ = true;

// Enable devtools
Vue.config.devtools = true;
Vue.config.productionTip = false;

Vue.prototype.$api = api;
Vue.prototype.$http = axios;

sync(store, router);

const {state} = store;

import App from "./App.vue";

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  template: '<App/>',
  components: {
    App,
  }
});







